<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script class="addBankInfo" type="text/html">
    <form action="">
        <div class="addBankInfo" >
            <table>
                <tr>
                    <td>真实姓名：</td>
                    <td>甜甜</td>
                </tr>
                <tr>
                    <td>身份证号：</td>
                    <td>5002405676867</td>
                </tr>
                <tr>
                    <td>手机号：</td>
                    <td><input type="text" name="phoneNo"></td>
                    <td>请填写该卡在银行预留的手机号码</td>
                </tr>
                <tr>
                    <td>验证码：</td>
                    <td><input type="text" name="phoneCode"></td>
                    <td><button type="button">获取验证码</button></td>
                </tr>
            </table>
        </div>
    </form>
</script>


<script>
    $('body').on('click','.addBank',function () {
        layer.open({
            content: $('.addBankInfo').html()
            ,area: ['800px', '500px'] //自定义文本域宽高
            ,btn: ['确定', '取消']
            ,yes: function(){
                //按钮【确定】的回调
            }
            ,btn2: function(){
                //按钮【取消】的回调
                return 0;
            }
        });
    })
</script>
</body>
</html>